package com.jkoss.wine.product.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;


/**
 * 商品类型
 * 
 * @Author Jason
 * @Version 1.0, 2019-08-13
 * @See
 * @Since com.jkoss.wine.shop.entity
 * @Description: TODO
 */
@TableName("product_type")
public class ProductType extends Model<ProductType> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品类型id
     */
    @TableId("product_type_id")
    private String productTypeId;
    /**
     * 父级id
     */
    @TableField("parent_id")
    private String parentId;
    /**
     * 商品类型名称
     */
    @TableField("product_type_name")
    private String productTypeName;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private Date addTime;
    /**
     * 操作人
     */
    @TableField("operator")
    private String operator;
    /**
     * 排序，从0开始，数字越小，排得越前
     */
    @TableField("sorting")
    private Integer sorting;
    /**
     * 店铺id
     */
    @TableField("shop_id")
    private String shopId;
    /**
     * 是否删除0否1是
     */
    @TableField("del")
    private Integer del;


    public String getProductTypeId() {
        return productTypeId;
    }

    public void setProductTypeId(String productTypeId) {
        this.productTypeId = productTypeId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getProductTypeName() {
        return productTypeName;
    }

    public void setProductTypeName(String productTypeName) {
        this.productTypeName = productTypeName;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Integer getSorting() {
        return sorting;
    }

    public void setSorting(Integer sorting) {
        this.sorting = sorting;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.productTypeId;
    }

    @Override
    public String toString() {
        return "ProductType{" +
        ", productTypeId=" + productTypeId +
        ", parentId=" + parentId +
        ", productTypeName=" + productTypeName +
        ", addTime=" + addTime +
        ", operator=" + operator +
        ", sorting=" + sorting +
        ", shopId=" + shopId +
        ", del=" + del +
        "}";
    }
}
